-- GENERATED SPELL FOR [Angrathar Aberration] --


function spell0_27631(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(31540,pUnit)
pUnit:RegisterEvent('Sorts_27631', 8000, 1)
end

function Sorts_27631(pUnit, Event)
local choix_sorts_27631 = math.random(0, 0)
if choix_sorts_27631 == 0 then
pUnit:RegisterEvent('spell0_27631', 1, 1)
end
end

function mob27631_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27631', math.random(1500, 3000), 1)
end

function mob27631_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27631_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27631_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27631, 1, 'mob27631_Action')
RegisterUnitEvent(27631, 2, 'mob27631_Leave')
RegisterUnitEvent(27631, 3, 'mob27631_Kill')
RegisterUnitEvent(27631, 4, 'mob27631_Die')
